/**
 * Created by xiteng on 2017/5/17.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
    Image,
    Dimensions
} from 'react-native';

import Constant from '../../js/Contant'
let {width, height} = Dimensions.get('window');
export default class TicketPanel extends Component{
    render(){
        let {tiketClick,foodClick} = this.props;
        return <View style={{backgroundColor:'#fff',flexDirection:'row',height:140}}>
            <TouchableOpacity activeOpacity={0.9} style={{width:width/2}} onPress={tiketClick}>
                <View style={{justifyContent:'center',alignItems:'center'}}>
                    <Image source={require('../../luoasserts/homeLuo/home_good_left.png')}/>
                </View>
            </TouchableOpacity>
            <TouchableOpacity activeOpacity={0.9} style={{width:width/2}} onPress={foodClick}>
                <View style={{justifyContent:'center',alignItems:'center'}}>
                    <Image source={require('../../luoasserts/homeLuo/home_good_right.png')}/>
                </View>
            </TouchableOpacity>
        </View>
    }
}
